-- GENERATED SPELL FOR [Ribbly's Crony] --


function spell0_10043(pUnit, Event) --@Eviscerate,n/a--
pUnit:FullCastSpellOnTarget(15692,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10043', 553, 1)
end

function spell1_10043(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(15581,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10043', 619, 1)
end

function Sorts_10043(pUnit, Event)
local choix_sorts_10043 = math.random(0, 1)
if choix_sorts_10043 == 0 then
pUnit:RegisterEvent('spell0_10043', 1, 1)
end
if choix_sorts_10043 == 1 then
pUnit:RegisterEvent('spell1_10043', 1, 1)
end
end

function mob10043_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10043', math.random(1500, 3000), 1)
end

function mob10043_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10043_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10043_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10043, 1, 'mob10043_Action')
RegisterUnitEvent(10043, 2, 'mob10043_Leave')
RegisterUnitEvent(10043, 3, 'mob10043_Kill')
RegisterUnitEvent(10043, 4, 'mob10043_Die')
